<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>使用简写的轮廓属性</title>
</head>

<body>
    <style>
        p.ex1 {
            outline: dashed;
        }

        p.ex2 {
            outline: dotted red;
        }

        p.ex3 {
            outline: 5px solid yellow;
        }

        p.ex4 {
            outline: thick ridge pink;
        }
    </style>
    <h1>outline 属性</h1>

    <p class="ex1">点状轮廓。</p>
    <p class="ex2">红色的点状轮廓。</p>
    <p class="ex3">5 像素的黄色实线轮廓。</p>
    <p class="ex4">粗的粉色凸脊轮廓。</p>
</body>

</html>